java get jar path

75

java get jar path -

return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
    .toURI()).getPath();

Comments

Submit
0 Comments